<script>
export default {
  name: "WorkOrderXQView",
  data() {
    return {
      list: {}
    }
  },
  methods: {
    index(){
      this.$router.push('/work_order')
    },
  },
  created() {
// 获取参数
    this.id = this.$route.query.id
    // 查询
    this.axios.get(`http://localhost:9999/api-work-order-service/work-order/findById?id=`+this.id).then(res => {
      this.list = res.data.data;
      console.log(res)
      console.log(this.list)
    })
  }
}
</script>

<template>
<div>
  <div>
    <van-nav-bar style="float: left;font-size: 20px" @click-left="index()" left-arrow/>
    <h5 style="font-size: 20px;margin-left: 40%;height: 40px">维保详情</h5>
  </div>
  <div>
    <h4>基本信息</h4>
    <div>
      <p>维保编号：{{list.workOrderNumber}}</p>
      <p>维保类型：{{list.type==1?"维修":list.type==2?"维保":"巡检"}}</p>
      <p>处理人：{{list.processor}}</p>
      <p>检查时间：{{list.workOrderChecktime}}</p>
      <p>创建时间：{{list.workOrderCreatetime}}</p>
    </div>
    <div>
      <p>设备ID:{{list.shebeiId}}</p>
      <p>设备名称:{{list.shebeiName}}</p>
      <p>设备位置:{{list.shebeiaddress}}</p>
    </div>
    </div>
</div>
</template>

<style scoped>

</style>